package com.hotel.service.Impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hotel.mapper.UserMapper;
import com.hotel.pojo.User;
import com.hotel.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-06-29 11:15
 */
public class PageServiceImpl implements PageService {

    @Autowired
    private UserMapper userMapper;
//
//    @Override
//    public PageInfo<User> selectRoleList(Integer pageNum, Integer pageSize, User user) {
//        PageHelper.startPage(pageNum, pageSize);
//        List<User> list = userMapper.selectList(null);
//        PageInfo<User> pageInfo = new PageInfo<>(list);
//        return pageInfo;
//
//    }
}
